<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>Add Student</title>
  <style>
    form { width: 50%; margin: 20px auto; }
    label { display: inline-block; width: 100px; }
    input[type="text"], input[type="email"] { width: 200px; padding: 5px; margin-bottom: 10px; }
    input[type="submit"] { padding: 5px 15px; background-color: #0066cc; color: white; border: none; cursor: pointer; }
    input[type="submit"]:hover { background-color: #0055aa; }
    .error { color: red; }
  </style>
</head>
<body>
<h2 style="text-align: center;">Add New Student</h2>

<form action="saveStudent" method="post">
  <div>
    <label>Name:</label>
    <input type="text" name="name" required />
  </div>
  <div>
    <label>Email:</label>
    <input type="email" name="email" required />
  </div>
  <div>
    <label>Phone:</label>
    <input type="text" name="phone" required />
  </div>
  <div>
    <label>Department:</label>
    <input type="text" name="department" required />
  </div>
  <div style="margin-left: 100px;">
    <input type="submit" value="Save" />
    &nbsp;&nbsp;
    <a href="">Cancel</a>
  </div>
</form>
</body>
</html>